module.exports = async (ctx,next)=>{

    console.log(ctx.method + " " + ctx.path);
    let start = new Date();

    await next();

    let num = new Date() - start;

    console.log('耗时' + num / 1000 + 's');
}